<%@ page language="java" contentType="text/html;charset=UTF-8" %>
<%@taglib prefix="rapid" uri="http://www.rapid-framework.org.cn/rapid"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<rapid:override name="frame-header-style">
    <style>
        /*覆盖 layui*/
        .layui-input-block {
            margin: 0px 10px;
        }

        .layui-table {
            margin-top: 0;
        }

        .layui-col-md4 {
            padding: 10px;
        }

        .layui-col-md8 {
            padding: 10px;
        }

        .layui-btn {
            margin: 2px 0 !important;
        }
    </style>
</rapid:override>

<rapid:override name="frame-content">
    <blockquote class="layui-elem-quote">
    <span class="layui-breadcrumb" lay-separator="/"> <a
    href="javascript:void(0)">首页</a> <a><cite>编辑菜单</cite></a>
    </span>
    </blockquote>

    <div class="layui-row">
    <div class="layui-col-md4">
    <form class="layui-form" method="post" id="myForm" action="menu/updateMenu">
        <input type="hidden" name="menuId" value="${menu.menuId}">
        <input type="hidden" name="menuOrder" value="${menu.menuOrder}">
    <div class="layui-form-item">
    <div class="layui-input-block">
    <strong>编辑菜单</strong>
    </div>
    <div class="layui-input-block">
    名称 <span style="color: #FF5722;">*</span>
    <input type="text" name="menuName" value="${menu.menuName}" placeholder="如：如留言板" autocomplete="off" class="layui-input" required>
    </div>
    <br>
    <div class="layui-input-block">
    URL <span style="color: #FF5722;">*</span>
    <input type="text" name="menuUrl" value="${menu.menuUrl}" placeholder="如：http://liuyanzhao.com/message.html" autocomplete="off" class="layui-input">
    </div>
    <br>
    <div class="layui-input-block">
    图标 <input type="text" name="menuIcon" value="${menu.menuIcon}" placeholder="如：fa fa-comment" autocomplete="off" class="layui-input">
    </div>
    <br>
    <div class="layui-input-block">
    菜单位置 <select name="menuLevel" id="menuId">
                <option value="1" selected>顶部菜单</option>
                <option value="2">主要菜单</option>
            </select>
    </div>
    <br>
    <div class="layui-input-block">
    <button class="layui-btn" lay-filter="formDemo" type="submit">提交</button>
    </div>
    </div>
    </form>
    </div>
    </div>
</rapid:override>

<%@include file="../framework.jsp"%>